package com.krlin.soccer.soccer.controller;

import com.krlin.soccer.soccer.service.CoachService;
import com.krlin.soccer.soccer.tools.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CoachController {


    @Autowired
    CoachService coachService;

    @GetMapping("/coachs")
    public Result getAllCoach() {
        return Result.succ(coachService.getAllCoach());
    }
}
